<?php

if (isset($_SESSION['is_logedin']) && $_SESSION['is_logedin'] == 1) {
    include(dirname(__FILE__) . '/user/users_lib.php');
    //die($_SESSION['id']);
    $user = get_user_detail($_SESSION['id']);
    if ($user == null) {
        session_start();
        session_destroy();
        header("Location: auth.php");
    }
} else {
    header("Location: auth.php");
}
?>